package com.zlc.common.core.process.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.zlc.common.common.service.BaseServiceImpl;
import com.zlc.common.core.process.model.entity.StoneSystem;
import com.zlc.common.core.process.mapper.StoneSystemMapper;
import com.zlc.common.core.process.model.vo.StoneSystemVo;
import com.zlc.common.core.process.service.StoneSystemService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author  zl
 * @date 2023-10-17 
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class StoneSystemServiceImpl extends BaseServiceImpl<StoneSystemMapper, StoneSystem, StoneSystemVo> implements StoneSystemService{

    @Override
    public StoneSystemVo getBySystemCode(String systemCode) {
        LambdaQueryWrapper<StoneSystem> wrapper = wrapper().eq(StoneSystem::getSystemCode, systemCode);
        return queryOne(wrapper);
    }
}
